'use strict';

angular.module("app").service('StoreService', ['dbUtils', '$http', '$q', function (dbUtils, $http, $q) {
    return {
        setDistribution:function(data){
            return dbUtils.post("/store/setDelivery",data);
        },
        getBanks: function(){
            return dbUtils.get("/store/banks");
        },
        getBankinfo:function(){
            return dbUtils.get("/store/getBankinfo");
        },
        setBankinfo:function(data){
            return dbUtils.post("/store/setBankinfo",data);
        },
        applyCash:function(money,password){
            return dbUtils.post("/store/applyCash",{money:money,password:password});
        }
    }
}]);